<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>android and js</title>
</head>

<body>
<p>It is my first js demo</p>
<hr width="80%"/>
<script type="text/javascript">
            function greed(a,b){
            alert("It's my first h5 page");
            document.getElementById("icon").src="code_add.png";
            <!--document.write(a+"&#45;&#45;"+b);-->
            }

            function goBaidu(site){
            var s=site;
            window.location.href=s

               var c=document.getElementById("divide");

               var cxt=c.getContext("2d");

               cxt.fillStyle="#FF0000";

               cxt.fillRect(0,0,150,75);
            <!--window.open("https://www.baidu.com/")-->
            }
            <!--// greed();-->

            function setLine(param1,param2){
              var c=document.getElementById("divide");

              var cxt=c.getContext("2d");

              cxt.fillStyle=param1;

              cxt.fillRect(0,0,150,param2);
            }






</script>

<!-- Calls into the javascript interface for the activity -->
<a onClick="window.javaMethod.jump()">
    <div style="width:80px;
            margin:0px auto;
            padding:10px;
            text-align:center;
            border:2px solid #202020;">
        <img id="icon" src="code_add.png"/><br>
        Click me!
    </div>
</a>
<canvas id="divide" width="500" height="10"></canvas>
<a onClick="window.javaMethod.search()">
    <div style="width:80px;
            margin:0px auto;
            padding:10px;
            text-align:center;
            border:2px solid #202020;">
        <img id="goBaidu" src="code_add.png"/><br>
        百度一下!
    </div>
</a>
</body>
</html>